package model;

import java.util.Observable;

public class Accumulator extends Observable {

	private static Accumulator instance;

	private Accumulator() {

	}

	public static Accumulator getInstance() {
		if (instance == null) {
			instance = new Accumulator();
		}
		return instance;
	}

	private int value;

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
		setChanged();
		notifyObservers(value);
	}
}
